]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
overview: Avoid repositioning windows while returning to desktop
authorCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 7 Jul 2014 15:26:37 +0000 (17:26 +0200)
committerCarlos Soriano <carlos.soriano89@gmail.com>
Mon, 7 Jul 2014 15:37:24 +0000 (17:37 +0200)
When returning to the desktop from overview we always show the
workspaceDisplay, given that is which have the windows clones to allow
animations.
The problem becomes when previous that we were at some other
page, like Search or AppDisplay. The problem is that when showing the
workspaceDisplay the windows are repositioned. That's wanted except
when returning from overview, since that causes unwanted animations
of the windows.
To avoid that just not reposition the windows if leaving the overview.

js/ui/workspace.js

index adad46fad6dfcbf9b17a9f4af8f4ca22631cc735..ec012c04bfc65271b00eb49d8ad36832c8b943e1 100644 (file)
@@ -1258,6 +1258,12 @@ const Workspace = new Lang.Class({
             return;
         }
 
+        // We will reposition windows when enter again overview anyway.
+        // In this way we avoid unwanted animations of windows repositioning while
+        // animating overview
+        if (this.leavingOverview)
+            return;
+
         let initialPositioning = flags & WindowPositionFlags.INITIAL;
         let animate = flags & WindowPositionFlags.ANIMATE;